Package com.cisco.pt.ipc.sim
Interface UsbController
- All Known Implementing Classes:
UsbControllerImpl
Information provided by the PKI file:
\class UsbController
\brief UsbController.
\example network().getDevice("PC0").getUsbPortAt(0).getController()
- Author:
- Auto-generated
-
Method Summary
Modifier and TypeMethodDescriptionintInformation provided by the PKI file:voidbegin(int speed) Information provided by the PKI file:booleandeployProjectFromFileSystem(String projectName, String path) Information provided by the PKI file:voidend()Information provided by the PKI file:booleanisPortUp()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:intpeek()Information provided by the PKI file:peekChar()Information provided by the PKI file:intInformation provided by the PKI file:intread()Information provided by the PKI file:readChar()Information provided by the PKI file:readLine()Information provided by the PKI file:voidsetSerialMonitoring(boolean bMonitoring) Information provided by the PKI file:intwrite(int value) Information provided by the PKI file:Methods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Method Details
-
begin
void begin(int speed) Information provided by the PKI file:
\brief Start the UsbController \param speed, the speed at which the Usb Controller is operating at- Parameters:
speed- Takes in a parameter of speed
-
end
void end()Information provided by the PKI file:
\brief End the UsbController -
available
int available()Information provided by the PKI file:
\brief Returns number of bytes available in the buffer \return int, number of bytes- Returns:
- int Returns a int
-
print
Information provided by the PKI file:
\brief Print string to the console \param value, the string to be printed \return int, the length of the string- Parameters:
value- Takes in a parameter of value- Returns:
- int Returns a int
-
readLine
String readLine()Information provided by the PKI file:
\brief Read the next line in the buffer \return string, the next line- Returns:
- String Returns a String
-
readChar
String readChar()Information provided by the PKI file:
\brief Read the next character in the buffer \return string, the next character in string format- Returns:
- String Returns a String
-
peekChar
String peekChar()Information provided by the PKI file:
\brief Peek the next character in the buffer \return string, the next character in string format- Returns:
- String Returns a String
-
read
int read()Information provided by the PKI file:
\brief Read the next character in the buffer - same as readChar() \return string, the next character in string format- Returns:
- int Returns a int
-
peek
int peek()Information provided by the PKI file:
\brief Peek the next character in the buffer - same as peekChar() \return string, the next character in string format- Returns:
- int Returns a int
-
write
int write(int value) Information provided by the PKI file:
\brief Write a character to the console \param value, ascii value of the character to be written \- Parameters:
value- Takes in a parameter of value- Returns:
- int Returns a int
-
setSerialMonitoring
void setSerialMonitoring(boolean bMonitoring) Information provided by the PKI file:
\brief Set Serial Monitoring on or off \param bMonitoring, true for on and false for off- Parameters:
bMonitoring- Takes in a parameter of bMonitoring
-
isSerialMonitoring
boolean isSerialMonitoring()Information provided by the PKI file:
\brief Check if Serial Monitoring is on or off \return bool, true for on and false for off- Returns:
- boolean Returns a boolean
-
deployProjectFromFileSystem
Information provided by the PKI file:
\brief Deploy project from file system \param projectName, name of the project in string \param path, path of the project in string \return bool, true if the project was successfully deployed and false if it's not- Parameters:
projectName- Takes in a parameter of projectNamepath- Takes in a parameter of path- Returns:
- boolean Returns a boolean
-
isPortUp
boolean isPortUp()Information provided by the PKI file:
\brief Check if port is powered on \return bool, true if it's powered on and false if it's not- Returns:
- boolean Returns a boolean
-
isProtocolUp
boolean isProtocolUp()Information provided by the PKI file:
\brief Check if port's protocol is up \return bool, true if port's protocol is up and false if it's not- Returns:
- boolean Returns a boolean
-